﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.DAL;
using MINERP.MODEL.FoundationModel;

namespace MINERP.BLL.Statistics.PaperManage
{
    public class PaperTypeBLL
    {
        public static List<PaperType_Info> GetAllPaperType()
        {
            List<PaperType_Info> paperTypeList = new List<PaperType_Info>();
            using (newSampleYPDBEntities db = new newSampleYPDBEntities())
            {
                foreach (var pt in db.paperType.ToList())
                {
                    paperTypeList.Add(new PaperType_Info()
                    {
                        PaperTypeID = pt.PaperTypeID,
                        Name=pt.Name,
                        Remark=pt.remark                        
                    });
                }
            }
            return paperTypeList;
        }        
    }
}
